import client from "./client";
import * as types from "./types";

export const getFile = async (params: {
  fileName: string;
}) => {
  const res = await client.post<types.GetFile>("/api/fileController/GetFile", params)
  return res.data
}

export const getFileList = async (params: {
  dir: string;
}) => {
  const res = await client.post<types.GetFileList>("/api/fileController/GetFileList", params)
  return res.data
}

